<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
      <h2>{{content}}</h2>
        <h2 v-html="content"></h2> 
        <!-- v-html="content" 解析html的 -->
    </div>
    
    
    <script src="./lib/Vue.js"></script>
    <script>
        const app = Vue.createApp({
            data() {
                return{
                  content:"<span style='color: red;font-size:30px'>哈哈哈</span>"
                }
            }
        })
        app.mount("#app")
    </script>
</body>
</html>